// 石墨化
import request from '@/utils/http'

// 新建用户质量要求表单
export function AddQuality (payload) {
  return request({
    url: '/v1/AddQuality',
    method: 'post',
    data: payload
  })
}
// 新建装出炉表单
export function AddLoadOven (payload) {
  return request({
    url: '/v1/AddLoad',
    method: 'post',
    data: payload
  })
}
// 新建送电曲线表单
export function AddEleCurve (payload) {
  return request({
    url: '/v1/AddEle',
    method: 'post',
    data: payload
  })
}
// 新建送电记录基本信息表单
export function AddBasic (payload) {
  return request({
    url: '/v1/AddBasicInfo',
    method: 'post',
    data: payload
  })
}
// 新建送电记录详细信息表单
export function AddDetail (payload) {
  return request({
    url: '/v1/AddDetailInfo',
    method: 'post',
    data: payload
  })
}

// 获取用户质量表信息
export function GetQuality (payload) {
  return request({
    url: '/v2/GetQuality',
    method: 'get',
    params: payload
  })
}
// source.cancel('请求中断...')
// 获取装炉报告信息
export function GetLoad (payload) {
  return request({
    url: '/v2/GetLoad',
    method: 'get',
    params: payload
  })
}
// 获取送电曲线表信息
export function GetElec (payload) {
  return request({
    url: '/v2/GetElec',
    method: 'get',
    params: payload
  })
}
// 获取基本表信息
export function GetBasicInfo (payload) {
  return request({
    url: '/v2/GetBasicInfo',
    method: 'get',
    params: payload
  })
}
// 获取详细表信息
export function GetDetailInfo (payload) {
  return request({
    url: '/v2/GetDetailInfo',
    method: 'get',
    params: payload
  })
}

// 修改用户质量要求表
export function UpdateQua (payload) {
  return request({
    url: '/v3/UpdateQua',
    method: 'put',
    data: payload
  })
}

// 修改装炉报告
export function UpdateLoad (payload) {
  return request({
    url: '/v3/UpdateLoad',
    method: 'put',
    data: payload
  })
}

// 修改送电曲线
export function UpdateEle (payload) {
  return request({
    url: '/v3/UpdateEle',
    method: 'put',
    data: payload
  })
}

// 修改基本信息
export function UpdateBasic (payload) {
  return request({
    url: '/v3/UpdateBasic',
    method: 'put',
    data: payload
  })
}

// 修改详细信息
export function UpdateDetail (payload) {
  return request({
    url: '/v3/UpdateDetail',
    method: 'put',
    data: payload
  })
}
